package com.example.printer2;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.example.printer2.po.My_List;
import com.jaeger.library.StatusBarUtil;

public class RegisterActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        StatusBarUtil.setColor(this,getResources().getColor(R.color.white),0);
    }

    public void getCode(View view) {
        Toast.makeText(this,"已发送，注意查收",Toast.LENGTH_LONG).show();
    }

    public void register(View view) {
        TextView textView=findViewById(R.id.username);
        My_List.eMail=textView.getText().toString();
        Intent intent=new Intent(this, PrinterActivity.class);
        startActivity(intent);
        this.overridePendingTransition(0, 0);
    }

    public void back(View view) {
        Intent intent=new Intent(this, LoginActivity.class);
        startActivity(intent);
        this.overridePendingTransition(0, 0);
    }
}